import CountMethod from '../methods/CountMethod'

const defaultState = {
  count: 1
}


export default (state = defaultState, action) => {
  try {
    return CountMethod[action.type](state, action.payload)
  } catch (e) {
    return state
  }
}